/* 卡片样式 */
.card {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.card-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 1rem 1.25rem;
}

.card-title {
  font-weight: 600;
  color: #333;
  margin-bottom: 0;
  display: flex;
  align-items: center;
}

.card-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 18px;
  background-color: #007bff;
  margin-right: 0.75rem;
  border-radius: 2px;
}

.card-body {
  padding: 1.25rem;
}

/* 表格样式 */
.table {
  margin-bottom: 0;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

/* 表头样式 */
.table thead th {
  background-color: #f8f9fa;
  border-bottom: 2px solid #e9ecef;
  vertical-align: middle;
  padding: 0.85rem 0.75rem;
  color: #495057;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 1;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}

.table td {
  padding: 0.85rem 0.75rem;
  vertical-align: middle;
  font-size: 0.9rem;
  color: #212529;
  border-top: 1px solid #e9ecef;
}

/* 表格行hover效果 */
.table-hover tbody tr:hover {
  background-color: rgba(0, 123, 255, 0.05);
  transition: all 0.2s;
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(0, 0, 0, 0.02);
}

/* 按钮样式 */
.btn {
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: #007bff;
  border-color: #007bff;
}

.btn-primary:hover {
  background-color: #0069d9;
  border-color: #0062cc;
}

.btn-outline-primary {
  color: #007bff;
  border-color: #007bff;
}

.btn-outline-primary:hover {
  background-color: #007bff;
  color: #fff;
}

.btn-outline-secondary {
  color: #6c757d;
  border-color: #6c757d;
}

.btn-outline-secondary:hover {
  background-color: #6c757d;
  color: #fff;
}

.btn-outline-danger {
  color: #dc3545;
  border-color: #dc3545;
}

.btn-outline-danger:hover {
  background-color: #dc3545;
  color: #fff;
}

/* 分页组件样式 */
.pagination {
  margin-bottom: 0;
  display: flex;
  align-items: center;
}

.page-link {
  color: #495057;
  border-color: #dee2e6;
  padding: 0.25rem 0.5rem;
  font-size: 0.85rem;
  line-height: 1.5;
}

.page-item.active .page-link {
  background-color: #007bff;
  border-color: #007bff;
}

.page-item.disabled .page-link {
  color: #6c757d;
  pointer-events: none;
  background-color: #fff;
  border-color: #dee2e6;
}

/* 搜索框样式 */
.input-group {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.input-group .form-control {
  border-radius: 4px 0 0 4px;
  border-color: #efefef;
  padding: 0.5rem 0.75rem;
}

.input-group .form-control:focus {
  box-shadow: none;
  border-color: #80bdff;
}

.input-group .btn {
  padding-left: 1rem;
  padding-right: 1rem;
}

/* 加载指示器样式 */
.spinner-border {
  width: 3rem;
  height: 3rem;
  color: #007bff;
}

/* 表格响应式样式 */
@media (max-width: 768px) {
  .table-responsive {
    max-height: 400px;
  }
  
  .table thead th {
    white-space: nowrap;
  }
}

/* 错误提示样式 */
.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
  border-color: #f5c6cb;
  border-radius: 4px;
  padding: 1rem;
  margin-bottom: 1rem;
}

/* 没有数据时的样式 */
.text-center {
  padding: 2rem 0;
  color: #6c757d;
}

/* 表单控件样式 */
.form-select, .form-control {
  border-radius: 4px;
  border: 1px solid #ced4da;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-select:focus, .form-control:focus {
  border-color: #80bdff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* 徽章样式 */
.badge {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.35em 0.65em;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.badge.bg-primary {
  background-color: #007bff !important;
  box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
} 